package com.cp.autoconfigure.gray;

import com.cp.support.gray.GrayFeignRequestInterceptor;
import com.cp.support.gray.GrayRibbonClientConfigurationRegistrar;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * 灰度发布feign自动配置类
 * -负载均衡对灰度发布的RibbonClient进行包装处理
 * -feign远程调用时, 拦截器对gray标记进行传递
 *
 * @author YangXiaoLong
 * 2022/11/2 10:21
 */
@Slf4j
@Configuration
@Import({GrayRibbonClientConfigurationRegistrar.class, GrayFeignRequestInterceptor.class})
public class GrayFeignAutoConfiguration {
}
